<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="../../../css/icon.css">
    <link rel="stylesheet" type="text/css" href="../../../css/easyui.css">
    <script type="text/javascript" src="../../../js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="../../../js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../js/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
        var datagrid;
        var operateDialog;
        var message = $.messager;
        $(function(){
            datagrid = $('#datagrid').datagrid({
                rowStyler: function(index,row){
                    if (row['evaluationValue']<80){
                        return 'background-color:red';
                    }else if(row['evaluationValue']<90){
                        return 'background-color:yellow';
                    }else{
                        return 'background-color:green';
                    }
                }
            });
        });
        function supplierData_() {
            var href = "supplierData_view.html";
            operateDialog = $("#operateDialog").dialog({title : '供应商数据'});
            $("#operateIFrame")[0].src=href;
            operateDialog.dialog('open');
        }
        function supplierDataSet_() {
            var href = "supplierData_set.html";
            operateDialog = $("#operateDialog").dialog({title : 'SupplierDataSet供应商目标数据设定',width:900,height:250});
            $("#operateIFrame")[0].src=href;
            operateDialog.dialog('open');
        }
    </script>
</head>
<body class="easyui-layout">
<div data-options="region:'north'" style="overflow: hidden;background-color: yellow;">
    <div class="datagrid-toolbar" style="height: auto;">
        <br/>
        <fieldset>
            <legend>Condition查询条件</legend>
            <table width="100%">
                <tr>
                    <td align="right">Supplier Code供应商编码：</td>
                    <td>
                        <input type="text"/>
                    </td>
                    <td align="right">Supplier Name供应商名称：</td>
                    <td>
                        <input type="text"/>
                    </td>
                </tr>
            </table>
        </fieldset>
        <br/>
    </div>
</div>
<div data-options="region:'center'">
    <div id="tb">
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-search">Search查询</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-undo">Reset重置</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-star" onclick="supplierData_();">SupplierData供应商数据</a>
        <!--<a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-edit" onclick="supplierDataSet_();">SupplierDataSet供应商目标数据设定</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-import">Import导入</a>-->
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-export">Export导出</a>
    </div>
    <table id="datagrid" toolbar="#tb" pagination="false" fit="true" nowrap="false">
        <thead>
        <tr>
            <th field="ck" checkbox="true"></th>
            <th field="1" width="80" align="center">SupplierCode<br/>供应商编码</th>
            <th field="2" width="100" align="center">SupplierName<br/>供应商名称</th>
            <th field="evaluationValue" width="100" align="center">EvaluationValue<br/>总得分</th>
            <th field="4" width="100" align="center">QMSystem<br/>质量体系得分</th>
            <th field="5" width="100" align="center">ProcessAudits<br/>过程审核得分</th>
            <th field="6" width="140" align="center">0-MilesDeliveryQuality<br/>0公里交付质量得分</th>
            <th field="7" width="120" align="center">ResponseOnProblems<br/>问题反映进度得分</th>
            <th field="8" width="200" align="center">DeductiblesForSpecialIncidents<br/></th>
            <th field="9" width="210" align="center">EnvironmentalManagementSystem(EMS)<br/>环境体系得分</th>
            <th field="10" width="120" align="center">SupplierRating<br/>供应商等级</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td></td>
            <td>91130</td>
            <td>上海达克罗涂覆工业有限公司</td>
            <td>78.0</td>
            <td>0</td>
            <td>45.0</td>
            <td>35</td>
            <td>0</td>
            <td>0</td>
            <td>-2</td>
            <td>C</td>
        </tr>
        <tr>
            <td></td>
            <td>91128</td>
            <td>TianjinSandian 天津三电汽车空调有限公司</td>
            <td>80.0</td>
            <td>10</td>
            <td>45.0</td>
            <td>26</td>
            <td>0</td>
            <td>0</td>
            <td>-1</td>
            <td>B</td>
        </tr>
        <tr>
            <td></td>
            <td>11112</td>
            <td>Aldinger GmbH</td>
            <td>94.0</td>
            <td>10</td>
            <td>45.0</td>
            <td>35</td>
            <td>5</td>
            <td>0</td>
            <td>-1</td>
            <td>A</td>
        </tr>
        </tbody>
    </table>
</div>
<div id="operateDialog" class="easyui-dialog" style="width:880px;height:480px;"
     data-options="iconCls:'icon-save',resizable:true,modal:true,closed: true,collapsible:true,maximizable:true">
    <iframe scrolling="auto" id='operateIFrame' frameborder="0"  src="" style="width:100%;height:100%;"/>
</div>
</body>
</html>